package com.test2;

import java.util.Scanner;

public class Main2 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
        //while (in.hasNextInt()) {//注意while处理多个case
            String data = in.nextLine();
            int count = 0;
            int len = data.length();
            for(int i=1;i<len;i++){
            	String data1 = data.substring(0, i);
            	String data2 = data.substring(i,len);
            	if(isOk(data1) && isOk(data2)){
            		count++;
            	}
            }
            for(int i=1;i<len;i++){
            	String data1 = data.substring(0, i);
            	String data2 = data.substring(i,len);
            	if(isOk(data1) && isOk(data2)){
            		count++;
            	}
            }
            
            System.out.println(count);
            
       // }
	}
	
	public static boolean isOk(String data){
		int len = data.length();
		if(len>1){
			if(!data.substring(0, 1).equals("0")){
				return true;
			}else{
				return false;
			}
		}else{
			return true;
		}
		
	}
}
